package org.dftproject.genesis.ui.pages;

import org.dftproject.genesis.ui.editors.TabPart;
import org.dftproject.genesis.ui.editors.TabPartEditorInput;


public class PageHistoryEntry {
	
	private String pageID;
	private IPageInput pageInput;

	public void setPageID(String pageID) {
		this.pageID = pageID;
	}
	
	public String getPageID() {
		return pageID;
	}

	public void setPageInput(IPageInput pageInput) {
		this.pageInput = pageInput;
	}
	
	public IPageInput getPageInput() {
		return pageInput;
	}
	
	public void navigate(TabPart tabPart) {
		TabPartEditorInput tabPartEditorInput = tabPart.getTabPartEditorInput();
		tabPartEditorInput.setPageInput(pageInput);
		tabPartEditorInput.setPageID(pageID);
		tabPart.navigateNoNotify();
	}

}
